var Explosion = BaseAnimate.extend({
    _isPlaying : false,
    ///////////////////////////////////////////////////////////
    ctor : function(name, parentBone){
        this._super(name, parentBone);
        return true;
    },
    getState:function(){
        return this._isPlaying;
    },
    //////////////////////////////
    movementEventCallback : function( target, type, actionName ){
        switch(type){
            case ccs.MovementEventType.start:{
                cc.log("***Effects movementEvent start");
                target._isPlaying = true;
                target.setVisible( true );
                break;
            }
            case ccs.MovementEventType.complete:{
                cc.log("***Effects movementEvent end");
                target.setVisible( false );
                target._isPlaying = false;
                break;
            }
            case ccs.MovementEventType.loopComplete:{
                cc.log("***Effects movementEvent loop end");
                break;
            }
        }
    },
    ///////////////////////////////////////////////////////////////////
    playing : function(id){
        this.playAction( id );
    }
});
////////////////////////////////////////////////////////////////
Explosion.create = function (filename,parentBone) {
    var effect = new Explosion(filename,parentBone);
    if (effect && effect.init(filename)) {
        return effect;
    }
    return null;
};

